package com.fs.dataservice.controller;

import com.fs.common.entity.DataQuery;
import com.fs.common.utils.R;
import com.fs.dataservice.service.IDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.List;
import java.util.Map;
import java.util.zip.GZIPInputStream;
/**
 * @Author: wdf
 * @Description:
 * @CreateDate: 2019/8/19 0019$
 */
@RestController
@RequestMapping("/api/dataService")
public class DateServiceController {
    @Autowired
    private IDataService iDataService;

    @PostMapping("/getdata")
    public R list(@RequestBody DataQuery query) throws Exception {
        return R.ok().put("data", iDataService.getDate(query));
    }
}
